﻿@model ToWaTimeReportMVC4.Models.SearchRapport

@{
    ViewBag.Title = "SearchRapport";
}

<h2>SearchRapport</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="@Url.Content("~/Scripts/jquery-ui-timepicker-addon.js")" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $('#StartDate').datetimepicker();
        $('#EndDate').datetimepicker();
    });
</script>

@using (Html.BeginForm("DisplaySearchResult", "Admin", "GET")) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>SearchRapport</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.StartDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.StartDate, "StartDate", "StartDate")
            @Html.ValidationMessageFor(model => model.StartDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EndDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EndDate, "EndDate", "EndDate")
            @Html.ValidationMessageFor(model => model.EndDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.normal)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.normal)
            @Html.ValidationMessageFor(model => model.normal)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.consultId)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.consultId, Model.Consultants)
            @Html.ValidationMessageFor(model => model.consultId)
        </div>

        <p>
            <input type="submit" value="Search" />
        </p>
    </fieldset>
}

